﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000531 RID: 1329
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class FFMHCHHHGBA : IMessage<FFMHCHHHGBA>, IMessage, IEquatable<FFMHCHHHGBA>, IDeepCloneable<FFMHCHHHGBA>, IBufferMessage
	{
		// Token: 0x1700112D RID: 4397
		// (get) Token: 0x06003C05 RID: 15365 RVA: 0x000A5845 File Offset: 0x000A3A45
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<FFMHCHHHGBA> Parser
		{
			get
			{
				return FFMHCHHHGBA._parser;
			}
		}

		// Token: 0x1700112E RID: 4398
		// (get) Token: 0x06003C06 RID: 15366 RVA: 0x000A584C File Offset: 0x000A3A4C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return FFMHCHHHGBAReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700112F RID: 4399
		// (get) Token: 0x06003C07 RID: 15367 RVA: 0x000A585E File Offset: 0x000A3A5E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return FFMHCHHHGBA.Descriptor;
			}
		}

		// Token: 0x06003C08 RID: 15368 RVA: 0x000A5865 File Offset: 0x000A3A65
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FFMHCHHHGBA()
		{
		}

		// Token: 0x06003C09 RID: 15369 RVA: 0x000A586D File Offset: 0x000A3A6D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FFMHCHHHGBA(FFMHCHHHGBA other) : this()
		{
			this.avatarType_ = other.avatarType_;
			this.avatarId_ = other.avatarId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06003C0A RID: 15370 RVA: 0x000A589E File Offset: 0x000A3A9E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FFMHCHHHGBA Clone()
		{
			return new FFMHCHHHGBA(this);
		}

		// Token: 0x17001130 RID: 4400
		// (get) Token: 0x06003C0B RID: 15371 RVA: 0x000A58A6 File Offset: 0x000A3AA6
		// (set) Token: 0x06003C0C RID: 15372 RVA: 0x000A58AE File Offset: 0x000A3AAE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AvatarType AvatarType
		{
			get
			{
				return this.avatarType_;
			}
			set
			{
				this.avatarType_ = value;
			}
		}

		// Token: 0x17001131 RID: 4401
		// (get) Token: 0x06003C0D RID: 15373 RVA: 0x000A58B7 File Offset: 0x000A3AB7
		// (set) Token: 0x06003C0E RID: 15374 RVA: 0x000A58BF File Offset: 0x000A3ABF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AvatarId
		{
			get
			{
				return this.avatarId_;
			}
			set
			{
				this.avatarId_ = value;
			}
		}

		// Token: 0x06003C0F RID: 15375 RVA: 0x000A58C8 File Offset: 0x000A3AC8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as FFMHCHHHGBA);
		}

		// Token: 0x06003C10 RID: 15376 RVA: 0x000A58D6 File Offset: 0x000A3AD6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(FFMHCHHHGBA other)
		{
			return other != null && (other == this || (this.AvatarType == other.AvatarType && this.AvatarId == other.AvatarId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06003C11 RID: 15377 RVA: 0x000A5914 File Offset: 0x000A3B14
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.AvatarType != AvatarType.None)
			{
				num ^= this.AvatarType.GetHashCode();
			}
			if (this.AvatarId != 0U)
			{
				num ^= this.AvatarId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06003C12 RID: 15378 RVA: 0x000A5972 File Offset: 0x000A3B72
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06003C13 RID: 15379 RVA: 0x000A597A File Offset: 0x000A3B7A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06003C14 RID: 15380 RVA: 0x000A5984 File Offset: 0x000A3B84
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.AvatarId != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.AvatarId);
			}
			if (this.AvatarType != AvatarType.None)
			{
				output.WriteRawTag(88);
				output.WriteEnum((int)this.AvatarType);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06003C15 RID: 15381 RVA: 0x000A59E0 File Offset: 0x000A3BE0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.AvatarType != AvatarType.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.AvatarType);
			}
			if (this.AvatarId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AvatarId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06003C16 RID: 15382 RVA: 0x000A5A38 File Offset: 0x000A3C38
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(FFMHCHHHGBA other)
		{
			if (other == null)
			{
				return;
			}
			if (other.AvatarType != AvatarType.None)
			{
				this.AvatarType = other.AvatarType;
			}
			if (other.AvatarId != 0U)
			{
				this.AvatarId = other.AvatarId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06003C17 RID: 15383 RVA: 0x000A5A88 File Offset: 0x000A3C88
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06003C18 RID: 15384 RVA: 0x000A5A94 File Offset: 0x000A3C94
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 48U)
				{
					if (num != 88U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.AvatarType = (AvatarType)input.ReadEnum();
					}
				}
				else
				{
					this.AvatarId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040017CF RID: 6095
		private static readonly MessageParser<FFMHCHHHGBA> _parser = new MessageParser<FFMHCHHHGBA>(() => new FFMHCHHHGBA());

		// Token: 0x040017D0 RID: 6096
		private UnknownFieldSet _unknownFields;

		// Token: 0x040017D1 RID: 6097
		public const int AvatarTypeFieldNumber = 11;

		// Token: 0x040017D2 RID: 6098
		private AvatarType avatarType_;

		// Token: 0x040017D3 RID: 6099
		public const int AvatarIdFieldNumber = 6;

		// Token: 0x040017D4 RID: 6100
		private uint avatarId_;
	}
}
